package com.infoauto.opc.gateway.dao;

import com.infoauto.opc.gateway.model.gtm4.EquipmentFailure;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 设备故障
 */
public interface EquipmentFailureDao {
    int insert(EquipmentFailure equipmentFailure);

    int update(EquipmentFailure equipmentFailure);

    List<EquipmentFailure> selectByProducTionTimeAndShift(@Param("productionTime") String productionTime,@Param("shift") Integer shift);

    EquipmentFailure select(@Param("productionTime") String productionTime,@Param("shift") Integer shift, @Param("sn") Integer sn);

    EquipmentFailure selectById(@Param("id") String id);
}
